<?php
$oAppconfig = AppconfigHandler::getConfig();
if (@$oAppconfig['bAllowPublic'])
{
	loadBox('user-addpublic');
}
?>
<form action="index.php" method="post" name="form_login">
<input type="hidden" name="sAction" value="user-login">
<input type="hidden" name="sRequestURI" value="<?php print @$_REQUEST['sRequestURI'] ?>">
<input type="hidden" name="iJobID" value="<?php print (int)@$_REQUEST['iJobID'] ?>">
<table class="boxborder" cellspacing="0">
	<tr>
		<td class="boxhandle" colspan="2"><?php print msg('User Login') ?></td>
	</tr>
	<tr>
		<td class="fieldname"><?php print msg('Username') ?>:</td>
		<td class="fieldvalue"><input type="text" size="20" name="sUser" value="<?php print @$_REQUEST['sUser'] ?>"></td>
	</tr>
	<tr>
		<td class="fieldname"><?php print msg('Password') ?>:</td>
		<td class="fieldvalue"><input type="password" size="20" name="sPass"></td>
	</tr>
	<tr>
		<td class="boxbody" style="text-align: center;" colspan="2">
			<input type="submit" value="<?php print msg('Login') ?>">
<?php
if (@$oAppconfig['bAllowPublic'])
{
	?>
			<input type="button" value="<?php print msg('Register') ?>" onClick="user_addpublic();">
	<?php
}
?>
		</td>
	</tr>
</table>
</form>
<script language="JavaScript">
	document.form_login.sUser.focus();
</script>
